<?php
namespace app\common\model;

use think\Model;
use think\Db;
class Shopcar extends Model
{
	public function getCreateTimeAttr($val){
		return date('Y-m-d H:i:s',$val);
	}
	public function getUpdateTimeAttr($val){
		return date('Y-m-d H:i:s',$val);
	}	
	public function havegoods($uid,$fid){
		$data=$this->where(array('uid'=>$uid,'fid'=>$fid))->select();
		if($data){
			return true;
		}else{
			return false;
		}
	}
}